3.6.12 \(\int (a+b \sinh ^2(e+f x))^p (d \tanh (e+f x))^m \, dx\) [512]

Optimal. Leaf size=122 \[ \frac {F_1\left (\frac {1+m}{2};\frac {1+m}{2},-p;\frac {3+m}{2};-\sinh ^2(e+f x),-\frac {b \sinh ^2(e+f x)}{a}\right ) \cosh ^2(e+f x)^{\frac {1+m}{2}} \left (a+b \sinh ^2(e+f x)\right )^p \left (1+\frac {b \sinh ^2(e+f x)}{a}\right )^{-p} (d \tanh (e+f x))^{1+m}}{d f (1+m)} \]

[Out]

AppellF1(1/2+1/2*m,1/2+1/2*m,-p,3/2+1/2*m,-sinh(f*x+e)^2,-b*sinh(f*x+e)^2/a)*(cosh(f*x+e)^2)^(1/2+1/2*m)*(a+b*
sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^(1+m)/d/f/(1+m)/((1+b*sinh(f*x+e)^2/a)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {3276, 525, 524} \begin {gather*} \frac {\cosh ^2(e+f x)^{\frac {m+1}{2}} (d \tanh (e+f x))^{m+1} \left (a+b \sinh ^2(e+f x)\right )^p \left (\frac {b \sinh ^2(e+f x)}{a}+1\right )^{-p} F_1\left (\frac {m+1}{2};\frac {m+1}{2},-p;\frac {m+3}{2};-\sinh ^2(e+f x),-\frac {b \sinh ^2(e+f x)}{a}\right )}{d f (m+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sinh[e + f*x]^2)^p*(d*Tanh[e + f*x])^m,x]

[Out]

(AppellF1[(1 + m)/2, (1 + m)/2, -p, (3 + m)/2, -Sinh[e + f*x]^2, -((b*Sinh[e + f*x]^2)/a)]*(Cosh[e + f*x]^2)^(
(1 + m)/2)*(a + b*Sinh[e + f*x]^2)^p*(d*Tanh[e + f*x])^(1 + m))/(d*f*(1 + m)*(1 + (b*Sinh[e + f*x]^2)/a)^p)

Rule 524

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*
((e*x)^(m + 1)/(e*(m + 1)))*AppellF1[(m + 1)/n, -p, -q, 1 + (m + 1)/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; Free
Q[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] && (IntegerQ[p] || GtQ[a
, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 525

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPar
t[p]*((a + b*x^n)^FracPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(e*x)^m*(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x
] /; FreeQ[{a, b, c, d, e, m, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[m, -1] && NeQ[m, n - 1] &&  !(IntegerQ[
p] || GtQ[a, 0])

Rule 3276

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.)*((d_.)*tan[(e_.) + (f_.)*(x_)])^(m_), x_Symbol] :> With[{ff
 = FreeFactors[Sin[e + f*x], x]}, Dist[ff*(d*Tan[e + f*x])^(m + 1)*((Cos[e + f*x]^2)^((m + 1)/2)/(d*f*Sin[e +
f*x]^(m + 1))), Subst[Int[(ff*x)^m*((a + b*ff^2*x^2)^p/(1 - ff^2*x^2)^((m + 1)/2)), x], x, Sin[e + f*x]/ff], x
]] /; FreeQ[{a, b, d, e, f, m, p}, x] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int \left (a+b \sinh ^2(e+f x)\right )^p (d \tanh (e+f x))^m \, dx &=\frac {\left (i \cosh ^2(e+f x)^{\frac {1+m}{2}} (i \sinh (e+f x))^{-1-m} (d \tanh (e+f x))^{1+m}\right ) \text {Subst}\left (\int (i x)^m \left (1+x^2\right )^{\frac {1}{2} (-1-m)} \left (a+b x^2\right )^p \, dx,x,\sinh (e+f x)\right )}{d f}\\ &=\frac {\left (i \cosh ^2(e+f x)^{\frac {1+m}{2}} (i \sinh (e+f x))^{-1-m} \left (a+b \sinh ^2(e+f x)\right )^p \left (1+\frac {b \sinh ^2(e+f x)}{a}\right )^{-p} (d \tanh (e+f x))^{1+m}\right ) \text {Subst}\left (\int (i x)^m \left (1+x^2\right )^{\frac {1}{2} (-1-m)} \left (1+\frac {b x^2}{a}\right )^p \, dx,x,\sinh (e+f x)\right )}{d f}\\ &=\frac {F_1\left (\frac {1+m}{2};\frac {1+m}{2},-p;\frac {3+m}{2};-\sinh ^2(e+f x),-\frac {b \sinh ^2(e+f x)}{a}\right ) \cosh ^2(e+f x)^{\frac {1+m}{2}} \left (a+b \sinh ^2(e+f x)\right )^p \left (1+\frac {b \sinh ^2(e+f x)}{a}\right )^{-p} (d \tanh (e+f x))^{1+m}}{d f (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]
time = 7.84, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a+b \sinh ^2(e+f x)\right )^p (d \tanh (e+f x))^m \, dx \end {gather*}

Verification is not applicable to the result.

[In]

Integrate[(a + b*Sinh[e + f*x]^2)^p*(d*Tanh[e + f*x])^m,x]

[Out]

Integrate[(a + b*Sinh[e + f*x]^2)^p*(d*Tanh[e + f*x])^m, x]

________________________________________________________________________________________

Maple [F]
time = 2.73, size = 0, normalized size = 0.00 \[\int \left (a +b \left (\sinh ^{2}\left (f x +e \right )\right )\right )^{p} \left (d \tanh \left (f x +e \right )\right )^{m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^m,x)

[Out]

int((a+b*sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^m,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^m,x, algorithm="maxima")

[Out]

integrate((b*sinh(f*x + e)^2 + a)^p*(d*tanh(f*x + e))^m, x)

________________________________________________________________________________________

Fricas [F]
time = 0.56, size = 27, normalized size = 0.22 \begin {gather*} {\rm integral}\left ({\left (b \sinh \left (f x + e\right )^{2} + a\right )}^{p} \left (d \tanh \left (f x + e\right )\right )^{m}, x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^m,x, algorithm="fricas")

[Out]

integral((b*sinh(f*x + e)^2 + a)^p*(d*tanh(f*x + e))^m, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e)**2)**p*(d*tanh(f*x+e))**m,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sinh(f*x+e)^2)^p*(d*tanh(f*x+e))^m,x, algorithm="giac")

[Out]

integrate((b*sinh(f*x + e)^2 + a)^p*(d*tanh(f*x + e))^m, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (d\,\mathrm {tanh}\left (e+f\,x\right )\right )}^m\,{\left (b\,{\mathrm {sinh}\left (e+f\,x\right )}^2+a\right )}^p \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*tanh(e + f*x))^m*(a + b*sinh(e + f*x)^2)^p,x)

[Out]

int((d*tanh(e + f*x))^m*(a + b*sinh(e + f*x)^2)^p, x)

________________________________________________________________________________________